package com.cjkj.common.core.constant;

/**
 * 权限相关通用常量
 */
public class SecurityConstants
{
    /**
     * 用户ID字段
     */
    public static final String DETAILS_USER_ID = "user_id";

    /**
     * 用户名字段
     */
    public static final String DETAILS_USERNAME = "username";

    /**
     * 授权信息字段
     */
    public static final String AUTHORIZATION_HEADER = "authorization";

    /**
     * 请求来源
     */
    public static final String FROM_SOURCE = "from-source";

    /**
     * 内部请求
     */
    public static final String INNER = "inner";

    /**
     * 用户标识
     */
    public static final String USER_KEY = "user_key";

    /**
     * 登录用户
     */
    public static final String LOGIN_USER = "login_user";

    /**
     * 角色权限
     */
    public static final String ROLE_PERMISSION = "role_permission";

    /**
     * 用户标识
     */
    public static final String APP_USER_KEY = "app_user_key";

    /**
     * 小程序用户ID
     */
    public static final String APP_USER_ID = "app_user_id";

    /**
     * 小程序用户名
     */
    public static final String APP_USER_NAME = "app_user_name";

    /**
     * 小程序唯一ID
     */
    public static final String APP_OPEN_ID = "app_openid";

    /**
     * 小程序登录用户
     */
    public static final String APP_LOGIN_USER = "app_login_user";
}
